#!/usr/bin/env python3

import multiprocessing as mp
import os
import time

def Run(*args):
    print("child pid = ", os.getpid(), ", Run args: ", args)
    time.sleep(5)
    print("child exit....")


def main():
    print("main pid = ", os.getpid())
    p = mp.Process(target=Run, args=(123, "kyo"))

    p.start()
    time.sleep(3)
    p.terminate()

if __name__ == "__main__":
    main()
